﻿using FairyGUI;

/// <summary>
/// 游戏玩家数据
/// </summary>
public class UIGame_Player {

    GComponent _comp;
    bool _isMe;
    UIGame_Player_Info _basicInfoCtrl;

    public UIGame_Player(GComponent comp, bool isMe = false)
    {
        _comp = comp;
        _isMe = isMe;

        _basicInfoCtrl = new UIGame_Player_Info(comp.GetChild("基础信息").asCom);
    }

    public void UpdateBasicInfo(GamePlayerInfo info)
    {
        _basicInfoCtrl.SetPlayerInfo(info);
    }
}
